]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dnd: Don't try to remove an invalid idle source
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 6 Nov 2013 09:40:29 +0000 (10:40 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 6 Nov 2013 15:40:50 +0000 (16:40 +0100)
As the handler returns false, the corresponding source is removed
automatically and its id invalidated. Reset the id to 0 to reflect
this, otherwise newer versions of GLib will print a warning when
we later try to remove it explicitly.

https://bugzilla.gnome.org/show_bug.cgi?id=711555

js/ui/dnd.js

index 54193ad808647d1cdf9a9031610fe5e8bba12f32..8172ac51c3dc0cab5b866b90d662529b7d2284bc 100644 (file)
@@ -346,6 +346,7 @@ const _Draggable = new Lang.Class({
     },
 
     _updateDragHover : function () {
+        this._updateHoverId = 0;
         let target = this._dragActor.get_stage().get_actor_at_pos(Clutter.PickMode.ALL,
                                                                   this._dragX, this._dragY);
         let dragEvent = {